package com.kgc.api.goods;

import com.kgc.bean.ShoppingCart;

import java.util.List;

public interface ShoppingCartApi {
    //判断该用户是否已经有购物车
    Boolean userIsHaveShoppingCart(Integer userId);
    //返回用户购物车信息
    ShoppingCart queryUserShoppingCart(Integer userId,String goodsId);
    //分配一个购物车给用户
    Boolean assignAShoppingCartToTheUser(Integer userId,String goodsId,Integer businessid);
    //返回拥有购物车的所有用户
    List<ShoppingCart> getAllUsersWhoHaveAShoppingCart();
    //根据主键修改其他信息
    Boolean persistentShoppingCart(ShoppingCart shoppingCart);

}
